package com.zj.jdk;

import com.zj.service.LiuDeHua;
import com.zj.service.Act;

public class Test {

    public static void main(String[] args) {
        System.setProperty("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
         Object proxyedObj = new StarProxy(new LiuDeHua()).CreatProxyedObj();
        Act star = (Act) proxyedObj;
        star.sing("sds");
//        Annimal annimal = (Annimal) proxyedObj;
//        annimal.eat("noodle");
    }
}
